import request from '@/utils/request'

// 获取员工列表
export function getEmployeeListAPI (params) {
  return request({
    url: '/employee/page',
    method: 'get',
    params
  })
}
// 添加员工接口
export function addEmployeeAPI (data) {
  return request({
    url: '/employee',
    method: 'post',
    data
  })
}
// 获取员工数据详情
export function getEmployeeDetailAPI (id) {
  return request({
    url: `/employee/${id}`
  })
}
// 编辑员工数据
export function editEmployeeAPI (data) {
  return request({
    url: '/employee',
    method: 'PUT',
    data
  })
}
// 禁用状态接口
export function disabledBtnAPI (data) {
  return request({
    url: '/employee',
    method: 'PUT',
    data
  })
}
